﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp1
{
    class PeopleInfo
    {
        [SugarColumn(IsPrimaryKey = true, ColumnDataType = "Nvarchar(10)", IsNullable = false)]
        //设置姓名为主键，设置数据类型
        public string Name { get; set; }
        [SugarColumn(IsNullable = false, ColumnDataType = "int")]
        //设置年龄，数据类型为int，不允许为空
        public int Age { get; set; }

        [SugarColumn(IsNullable = false, ColumnDataType = "int")]
        //设置身高，数据类型为int，不允许为空
        public int Height { get; set; }

        [SugarColumn(IsNullable = false, ColumnDataType = "int")]
        //设置体重，数据类型为int，不允许为空
        public int Weightt { get; set; }

        [SugarColumn(IsNullable = false, ColumnDataType = "bigint")]
        //设置电话，数据类型为bigint，不允许为空
        public long PhoneNum { get; set; }
    }
}
